<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<div class="layui-header">
    <!-- 头部区域 -->
    <ul class="layui-nav layui-layout-left huanying_tit">
        <li class="layui-nav-item layadmin-flexible" lay-unselect="">
            <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩">
                <i class="layui-icon layui-icon-shrink-right" id="shensuo"></i>
            </a>
        </li>
        <li class="huanyin layui-nav-item"><span id="c_realname">欢迎您：${sessionScope.username}</span><span class="today_head"></span></li>
    </ul>
    <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
        <li class="layui-nav-item" style="margin-right: 20px;">
            <a href="javascript:;" id="c_username">${sessionScope.username}<span class="layui-nav-more"></span></a>
            <dl class="layui-nav-child layui-anim layui-anim-upbit">
                <dd>
                    <a href="javascript:void(0);" onclick="exit()">退出登录</a>
                </dd>
            </dl>
        </li>
    </ul>
</div>

<script type="text/javascript">
    //退出
    function exit() {
        clearCookieAll();
        $.post('/loginout',{}, function(){
            parent.location.href="login.jsp";
        });
    }

</script>